home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / dframe21.arc / DFRAME.INC < prev    next >
Encoding:
Text File  |  1991-03-22  |  11.0 KB  |  186 lines

  1. DECLARE SUB BOX.IT (TROW%, LCOL%, BROW%, RCOL%, BOXTYPE%, BOXFG%, BOXBG%, FILLFG%, FILLBG%, FILLCHAR%, SHADOW%, TITLE$)
  2. DECLARE SUB CLRSCRN ()
  3. DECLARE SUB DE.LAY (BYVAL SECONDS AS INTEGER)
  4. DECLARE SUB DETECT.ANSI ()
  5. DECLARE SUB DIS.PLAY (MSG$, FGC%, BGC%, BLINK%, BELL%, XPOS%, YPOS%, NL%, CENTER%, Caps%)
  6. DECLARE SUB ENTER ()
  7. DECLARE SUB ERRORS (ERRNUM%, ERRLINE%)
  8. DECLARE SUB EXIT.DOOR (YN$)
  9. DECLARE SUB FindFirstF (FileName$, Attr%, ErrCode%)
  10. DECLARE SUB FindNextF (ErrCode%)
  11. DECLARE SUB GetNameF (FileName$, NameLen%)
  12. DECLARE SUB INITIALIZE ()
  13. DECLARE SUB IN.PUT (RLEN%, WAITTIME%, IFG%, IBG%)
  14. DECLARE SUB KEYTIMER (KEYSTART!)
  15. DECLARE SUB LINES (SROW%, SCOL%, LENGTH%, DIR$, ENDS%, MID%, EFG%, EBG%, MFG%, MBG%)
  16. DECLARE SUB MAKE.BLT (HI.SCORE#)
  17. DECLARE SUB MAKE.BLT.CURRENT (HI.SCORE#)
  18. DECLARE SUB MORE ()
  19. DECLARE SUB MUSIC (TUNE$)
  20. DECLARE SUB OUT.PUT (LF%)
  21. DECLARE SUB SEND (MSG$, YN%)
  22. DECLARE SUB SHOW.BLT (YN$)
  23. DECLARE FUNCTION EXISTS% (FileName AS STRING)
  24.  
  25. DECLARE SUB DelFile (FileName$, ErrCode%)
  26. DECLARE FUNCTION DriveSpace& (Drive$)
  27. DECLARE SUB GetDrv (Drive$)
  28. DECLARE SUB GetExecPath (HomePath$, PathLen%)
  29. DECLARE SUB GetKbd (Insert%, Caps%, NUM%, ScrollLock%)
  30. DECLARE SUB GetKbd1 (LShift%, RShift%, Control%, Alt%)
  31. DECLARE SUB GetSub (SubDir$, SubDirLen%)
  32. DECLARE SUB GetSub1 (Drive$, SubDir$, SubDirLen%, ErrCode%)
  33. DECLARE SUB Namecase (St$)
  34. DECLARE SUB RInstr (MainSt$, SubSt$, Posn%)
  35. DECLARE SUB SetError (BYVAL ErrorLevel%)
  36. DECLARE SUB SetKbd (BYVAL Insert%, BYVAL Caps%, BYVAL NUM%, BYVAL ScrollLock%)
  37. DECLARE SUB SubExist (SubDir$, IsThere%)
  38.  
  39. 'NOTE: The following variables are not universally available.
  40. '      Check DFRAME.DOC for variables available to each BBS system's file.
  41.  
  42. COMMON SHARED Age$                      'WWIV
  43. COMMON SHARED Alias$                    'Caller's alias/handle
  44. COMMON SHARED AllowedBytes#             'Allowed BYTES from the PCB PWRD file.
  45. COMMON SHARED AlreadyConnected$         '"TRUE" or "FALSE"
  46. COMMON SHARED AnsiOn$                   '"TRUE" or "FALSE"
  47. COMMON SHARED AnsiSupport$              'Caller supports ANSI but in NG mode
  48. COMMON SHARED BaudConn$                 'Connect rate of caller or "LOCAL"
  49. COMMON SHARED BaudOpen$                 'Port opening BPS
  50. COMMON SHARED BaudRate$                 'Baud and parity for DORINFO
  51.                                         'Baud rate or 'KB' for WWIV
  52. COMMON SHARED BBSColor%                 'BBS default color code (1-15)
  53. COMMON SHARED BBSDir$                   'Spitfire's home directory
  54. COMMON SHARED BBSSys$                   'Name of the BBS
  55. COMMON SHARED BBSName$                  'WWIV
  56. COMMON SHARED BirthDate$                'Caller's date of birth
  57. COMMON SHARED BltPath$                  'Path of the high score bulletin.
  58. COMMON SHARED CallAlarm%                'Caller alarm status.     -1=ON, 0=OFF
  59. COMMON SHARED CallersLoc$               'Location of CALLERSx log
  60. COMMON SHARED CallSign$                 'WWIV
  61. COMMON SHARED ChatStatus$               'Chat mode status. "U" or "A"
  62. COMMON SHARED City$                     'Caller's city and state
  63. COMMON SHARED CNAMESLoc$                'Location of CNAMES
  64. COMMON SHARED Columns$                  'WWIV
  65. COMMON SHARED Comport%                  'COM port number
  66. COMMON SHARED ConfReg$                  'Conference registration
  67. COMMON SHARED Console$                  '"LOCAL" or "REMOTE"
  68. COMMON SHARED Daily.Bytes.Alwd#         'Daily download max. K limit
  69. COMMON SHARED DailyDnldBytes&           'Bytes downloaded so far today.
  70. COMMON SHARED DataBits$                 '7 OR 8
  71. COMMON SHARED DataDir$                  'WWIV
  72. COMMON SHARED DeleteFlag%               '1 = delete this record, 0 = keep
  73. COMMON SHARED Display%                  'Local display status.    -1=ON, 0=OFF
  74. COMMON SHARED DLPerDay%                 'Number of downloads allowed per day
  75. COMMON SHARED DLToday%                  'Number of downloads made today
  76. COMMON SHARED DoorNumber$               '
  77. COMMON SHARED Doors.Opened%             'Number of Doors he has opened
  78. COMMON SHARED DoorSys%                  '1 = using DOOR.SYS, 0 otherwise
  79. COMMON SHARED DorInfo%                  '1 = using DORINFx.DEF, 0 otherwise
  80. COMMON SHARED DorInfo13th$              '13th line for RBBS DORINFO
  81. COMMON SHARED Downloads%                'Number of downloads made
  82. COMMON SHARED ECC%                      'Error corrected connect.  1=YES, 0=NO
  83. COMMON SHARED EnterDoor$                'Time caller entered the door
  84. COMMON SHARED Event$                    'Event time (hh:mm)
  85. COMMON SHARED ExeName$                  'Name of .EXE (Programmer supplied)
  86. COMMON SHARED Expert$                   'Expert mode - "Y" or "N"
  87. COMMON SHARED Expire$                   'Caller's expiration date
  88. COMMON SHARED ExpiredLevel&             'Expired Security level
  89. COMMON SHARED ExtraTime&                'Number of seconds gained since logon
  90. COMMON SHARED First$                    'Caller's first name
  91. COMMON SHARED FrontEnd$                 '"TRUE" or "FALSE" if booted from a
  92.                                         'front end program.
  93. COMMON SHARED GfilesDir$                'WWIV
  94. COMMON SHARED Gold$                     'WWIV
  95. COMMON SHARED Graphics%                 'Graphics mode status.    -1=ON, 0=OFF
  96. COMMON SHARED HPhone$                   'Caller's home phone number
  97. COMMON SHARED LastConf%                 'Conference number last in.
  98. COMMON SHARED LastFArea$                'Last file area
  99. COMMON SHARED LastMConf$                'Last message conference
  100. COMMON SHARED LastMsg$                  'Last message read
  101. COMMON SHARED LastOn$                   'Date caller last logged on (MM-DD-YY)
  102. COMMON SHARED LastOnDate$               'Date and time of last call
  103. COMMON SHARED LastScan$                 'Date of last directory/new files scan
  104. COMMON SHARED LastTimeOn$               'Last time caller was on
  105. COMMON SHARED Level&                    'Caller's security level
  106. COMMON SHARED LocalUsr%                 '-1 = LOCAL mode, 0 = Online
  107. COMMON SHARED Log$                      'WWIV
  108. COMMON SHARED LogonHrs$                 'Time caller logged on in HH:MM format
  109. COMMON SHARED LogonMins%                'Time caller logged on in minutes
  110. COMMON SHARED LogonSecs&                'Number of seconds since midnight
  111.                                         'when caller logged on to the BBS.
  112. COMMON SHARED LogonTimeDate$            'Date and time of this call
  113. COMMON SHARED MaxBaud$                  'Maximum baud of the system
  114. COMMON SHARED Max.Files%                'Maximum daily files available
  115. COMMON SHARED MinsCredit%               'Time credits in minutes
  116. COMMON SHARED MNP$                      '"MNP/ARQ Connection" or
  117.                                         '"Normal Connection"
  118. COMMON SHARED Mode%                     '0 = Non-color, -1 = color is on
  119. COMMON SHARED Msgs.Left%                'Total messages left
  120. COMMON SHARED Msgs.Read%                'Total messages read
  121. COMMON SHARED Name$                     'Caller's full name
  122. COMMON SHARED Network%                  '1 = BBS is networked, 0 = no network
  123. COMMON SHARED Network$                  'DORINFO network type
  124. COMMON SHARED NodeNum%                  'Node number
  125. COMMON SHARED NoDTELock$                '"TRUE" or "FALSE" if configured for
  126.                                         'software data flow control.
  127. COMMON SHARED Num.Dl.Today%             'Files downloaded so far today
  128. COMMON SHARED Owner$                    'DoorFrame registered owners name.
  129. COMMON SHARED PageBell%                 'Page bell status.        -1=ON, 0=OFF
  130. COMMON SHARED PageLen%                  'Caller's page length
  131. COMMON SHARED Parity%                   'Parity (word length?) (7 or 8)
  132. COMMON SHARED Parity$                   'WWIV
  133. COMMON SHARED Password$                 'Password of caller
  134. COMMON SHARED PathGen$                  'Path to the GEN directory
  135. COMMON SHARED PathMain$                 'Path to the MAIN directory
  136. COMMON SHARED PCBDat$                   'Location of PCBOARD.DAT
  137. COMMON SHARED PCBoard%                  '1 = PCBoard, 0 = non-PCBoard
  138. COMMON SHARED PCB.Version%              'PCBoard version number (i.e. 1450)
  139. COMMON SHARED Printer%                  'Printer status.          -1=ON, 0=OFF
  140. COMMON SHARED ProgName$                 'Name of DOOR (Programmer supplied)
  141. COMMON SHARED Protocol$                 'Caller's default protocol (Z, X, etc)
  142. COMMON SHARED Response$                 'Returned after a CALL to IN.PUT
  143. COMMON SHARED Seconds&                  'Number of seconds since midnight
  144.                                         'when caller entered the door.
  145. COMMON SHARED Serial$
  146. COMMON SHARED Sex$                      'WWIV
  147. COMMON SHARED Spitfire%                 '1 = using SFDOORS.DAT, 0 otherwise
  148. COMMON SHARED SysLoc$
  149. COMMON SHARED SysOp%                    '1 = SYSOP is using DOOR, 0 otherwise
  150. COMMON SHARED Sysop$                    'WWIV
  151. COMMON SHARED SysOpFirst$               'Sysop's first name
  152. COMMON SHARED SysOpFlag$                '" ", "N"=Sysop Next, "X"=Exit to DOS
  153. COMMON SHARED SysOpLast$                'Sysop's last name
  154. COMMON SHARED SysOpName$                'Sysop's first and last names
  155. COMMON SHARED SysOpNext$                '"TRUE" or "FALSE"
  156. COMMON SHARED TimeAdjust%               'Use to adjust the callers time
  157.                                         'remaining online (in minutes).
  158. COMMON SHARED TimeAlwd%                 'Minutes caller is allowed
  159. COMMON SHARED TimeLastCall$             'Time of last call (hh:mm)
  160. COMMON SHARED TimeLeft%                 'Time caller has left in minutes
  161. COMMON SHARED TimeNow%                  'Current time in minutes
  162. COMMON SHARED TimeOff$                  'Time caller exited the door
  163. COMMON SHARED TimeOut%                  'Keyboard timeout - defaults to 5 mins
  164. COMMON SHARED TimesOn%                  'Number of times on system
  165. COMMON SHARED TimeUsed%                 'Time used so far today in minutes
  166. COMMON SHARED Total.Bytes.Alwd#         'Max. bytes allowed
  167. COMMON SHARED Total.Bytes.Today#        'Daily download K total
  168. COMMON SHARED Total.KB.Dl#              'Total K bytes downloaded
  169. COMMON SHARED Total.KB.Ul#              'Total K bytes uploaded
  170. COMMON SHARED TotDnldBytes&             'Total number of BYTES downloaded
  171. COMMON SHARED TotUpldBytes&             'Total number of BYTES uploaded
  172. COMMON SHARED Uploads%                  'Number of uploads made
  173. COMMON SHARED UserComment$              'User maintained comment
  174. COMMON SHARED UserNum%                  'Record number of caller
  175. COMMON SHARED UsersLoc$                 'Location of PCBOARD USERS file
  176. COMMON SHARED UsrSys%                   '1 = using USERS.SYS, 0 otherwise
  177. COMMON SHARED Version$                  'DOOR version # (Programmer supplied)
  178. COMMON SHARED WildCat%                  '1 = using CALLINFO.BBS, 0 otherwise
  179. COMMON SHARED WPhone$                   'Caller's work phone number
  180. COMMON SHARED WWIV%                     '1 = using CHAIN.TXT, 0 otherwise
  181.  
  182. CONST BLACK = 0, BLUE = 1, GREEN = 2, CYAN = 3, RED = 4, MAGENTA = 5
  183. CONST YELLOW = 6, WHITE = 7, GRAY = 8, LBLUE = 9, LGREEN = 10, LCYAN = 11
  184. CONST LRED = 12, LMAGENTA = 13, LYELLOW = 14, LWHITE = 15
  185.  
  186.